import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Antd from 'ant-design-vue';
import SvgIcon from '@/components/SvgIcon.vue'
import {DashboardOutlined} from "@ant-design/icons-vue";
import 'ant-design-vue/dist/antd.less';
import './assets/css/base.less';

import themeColor from './commonbase/themeColor';
//new themeColor().getAntdSerials("#1890ff");

import { createFromIconfontCN } from '@ant-design/icons-vue';
const IconFont = createFromIconfontCN({
  scriptUrl: '//at.alicdn.com/t/font_8d5l8fzk5b87iudi.js',
});

const requireAll = (requireContext:any) => requireContext.keys().map(requireContext)
const req = require.context('./assets/icons', false, /\.svg$/) 
requireAll(req);
new themeColor().changeAttrColr(store.getters.themeIndex);

createApp(App).use(store).use(Antd).component("svg-icon",SvgIcon).component("icon-font",IconFont).use(router).mount('#app')
